package com.wanmait.schedule.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.wanmait.schedule.entity.CompanyType;
import com.wanmait.schedule.mapper.CompanyTypeMapper;
import com.wanmait.schedule.service.CompanyTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 类型表 服务实现类
 * </p>
 *
 * @author wanmait
 * @since 2022-03-02
 */
@Service
public class CompanyTypeServiceImpl extends ServiceImpl<CompanyTypeMapper, CompanyType> implements CompanyTypeService {

    @Resource
    private CompanyTypeMapper companyTypeMapper;

    @Override
    public List<CompanyType> select() {
        LambdaUpdateWrapper<CompanyType> updateWrapper = new LambdaUpdateWrapper<>();
        List<CompanyType> companyTypes = companyTypeMapper.selectList(updateWrapper);
        return companyTypes;
    }
}
